home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Users Group Library 1996 July
/
C-C++ Users Group Library July 1996.iso
/
vol_400
/
411_02
/
vim
/
readme2.0
< prev
next >
Wrap
Text File
|
1993-12-13
|
25KB
|
663 lines
This is a summary of the modifications from Vim version 1.27 to version 2.0.
Incompatible changes
====================
The 'exrc' and 'secure' options are default off. If you want Vim to read a
.exrc or .vimrc in the current directory, you will have to set 'exrc' in your
global .exrc or .vimrc. People doing this are supposed to know about the
security problems, so they don't need the 'secure' option set. This is also
more vi-compatible.
Renamed quoting to visual select and swapped 'q' and 'v' keys to avoid
problems with CTRL-Q. This is also more Elvis compatible. The commands now are:
'v' start character-wise visual select
'V' start line-wise visual select
CTRL-V start block-wise visual select
'q' start recording
'Q' formatting operator
Changed CTRL-R into CTRL-Y for insert mode (copy character from line above).
This is more logical when comparing the meaning of CTRL-E and CTRL-Y in
command mode and insert mode.
Replaced CTRL-B with CTRL-R (insert contents of a register) in insert mode.
This mnemonic is more logical, because "register" is used in the documentation.
Added ":pwd" command and made ":cd" without an argument for Unix go to home
directory. This is more vi-compatible and behaves the same as the unix cd
command. The ":cd" command for MSDOS and Amiga versions is unchanged, these
machines don't have a home directory.
With the 'confirm' option to :s anything but 'y', 'n', ESC, CTRL-C or 'q' is
ignored. Nothing happens until you type a valid character. Quit substitution
with <q>, ESC and CTRL-C.
Swapped 'u' and 'U' for visual mode. 'u' makes lower case, 'U' upper. This is
more logical.
Added 'wildchar' option for filename completion. The default is <TAB> instead
of <ESC>. Most other programs use this and it avoids problems with terminal
sequences that start with <ESC> (one second wait before filename completion
starts).
Changed short name of 'showmode' option from "mo" to "smd".
Changed short name of 'modelines' from 'ml' into 'mls'. This is vi-compatible.
Changed meaning of the argument to :cf. The 'errorfile' option will now be
set to the argument.
Major improvements
==================
Added horizontal scrolling and 'wrap' option. This allows the user to choose
between line wrap (you see all the text but long lines mess up the layout)
and horizontal scrolling (correct layout but you see only a part of long
lines).
Added 'sidescroll' option. It is the number of columns to jump when the
cursor gets off of the screen while the 'wrap' option is off. The default is
0, which means that the cursor is centered on the screen. Set it to a small
number if you have fast screen I/O.
Wildcard expansion has been made more compatible with other programs. Added
'wildchar' option; default is <TAB> instead of <ESC>. With multiple matches
first match is inserted. CTRL-A inserts all matches. With CTRL-D command: If
file is a dir '/' is added. WILD_CARDS code now always included, no
compile-time option anymore. 'wildchar' is only recognized when typed, not in
a macro (prevents problems with macros containing TABs).
CTRL-L on commandline inserts longest common part of filename completion. Now
you can choose between using TAB (or 'wildchar') for getting the first match
or CTRL-L for getting the longest match.
Added automatic textmode (lines ending in CR-LF instead of LF) detection and
'textauto' option. This works when starting to edit a file and when doing a
":r" command. This is useful on MS-DOS systems with a network file system and
when editing an MS-DOS floppy on Unix or Amiga. Added [(no)textmode] message
to readfile() and writeit(). Now you can see when unexpected line separators
have been detected or are being used.
Added "-b" command line option. This makes it more easy to edit binary files
without unexpected effects.
Added ":make" command, 'errorformat' option and argument to -e option. Now you
can do your compiling from within Vim and automatically jump to the line where
the error is. Can be adjusted to work with many compilers. The command to be
executed with ":make" can be set with the 'makeprg' option. '%' and '#' in
the 'makeprg' option are expanded as usual in a command line.
Added reverse insert mode, 'revins' option and CTRL-P command. Now you can
type backwards!
Added abbreviations. They work in insert mode and in command line mode, just
like Vi. Also added :iabbr, :cabbr and friends: abbreviations for command line
only or insert mode only. Added dumping of abbreviations to :mkexrc.
Added ":center" (center the lines), ":left" (left adjustment) and ":right"
(right adjustment). ":center" and ":right" use the 'textwith' option.
Added bios calls for MSDOS screen output, ansi.sys no longer required.
Screen updating much faster now and works with more video modes. Added pcansi
termcap for when not using the console.
Other improvements
==================
If 'expandtab' is set, spaces will also be used in indents.
'tabstop' maximum removed.
Digraphs also work in the command line.
Added :redo, same as CTRL-R.
Added '-x' option for the Amiga version. The current window will be used, but
shell commands are not possible. Handy when starting Vim from a mail program.
Added 'secure' option. When reset you don't get the warnings from reading a
.vimrc/.exrc file in the current directory.
Added 'exrc' option. Now you can switch the reading of ".exrc/.vimrc" off.
Added "vim:" modelines. Other vi versions allowed all ex commands in
modelines, vim only allows set commands. Use "vim:" to avoid confusion.
Optimized position of ruler and shown command.
Improved redrawing of long command lines.
Added <SC_UP> and <SC_DOWN> to command line editing. This finds the
next/previous command that starts with the text in front of the cursor.
Added CTRL-B and CTRL-E to command line editing. Go to begin/end of the
command line.
With ":w!" readonly is reset.
If possible the cursor is switched off while visual selecting. Makes it more
clear what is selected.
Format deletes blanks at end of lines. This makes it possible to use
formatting to limit the text to a certain number of columns (e.g. 80).
Modelines quits after first error. This avoids a long list of errors when
editing a text with "vi:" accidently embedded (e.g. vim.hlp).
Optimized undo for delete. Now only 2/3 of the memory used and less copying of
lines. Speed up when deleting a lot of lines in a big file.
Added :suspend, same as CTRL-Z.
Added command-line-only mapping ":cmap", insert-mode-only ":imap" and the
associated unmap and noremap commands. Now you can enter mappings for every
mode (command/insert/command-line) separately.
Changed smart-indent a little.
Now one free chunk list per allocated block in storage.c. Makes editing big
files a bit faster.
Added repeat to visual select. now you can select the same area again.
Improved showmatch() for uneven number of quotes.
Added 'paste' option. This makes it easy to swith between typing and inserting
text with a cut/paste method. Doing ":set nopaste" before ":set paste" does
not do anything.
Added sFilename: Filename without path. Mostly only the name you typed is
shown, but internally the full path name is remembered. Otherwise the ":cd"
command would mess up the real file name. Use short file name as long as :cd
not used. If one does not use :cd the short file name will be valid. This
will avoid long path names to be printed on the status line and having to
"hit return to continue". It is also better to avoid problems with some
networks where the absolute path is not valid after a while. If :cd has been
used the full path name needs to be used to get to the right file.
Changed :digraph in :digraphs. Now "digraph" and "digraphs" both work.
Added emsg2() for more informative error messages. For example: "Cannot open
<filename> for writing" with :mkexrc.
Made 'r' command use get_literal(). Now you enter the decimal code for the
replacement character with CTRL-V nnn, where nnn is any decimal number.
Added def